From ce6b1a3c0c2c56ab90ff1a91152dfaf5d827e955 Mon Sep 17 00:00:00 2001 From: Senya Date: Thu, 21 Apr 2016 16:11:39 +0300 Subject: [PATCH] Clear unused regex in mention.rb The REGEX is unused closes #6810 --- Changelog.md | 1 + app/models/mention.rb | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Changelog.md b/Changelog.md index cd5d8d618..6ecc0ce22 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,7 @@ # 0.5.9.0 ## Refactor +* Remove unused mentions regex [#6810](https://github.com/diaspora/diaspora/pull/6810) ## Bug fixes * Fix back to top button not appearing on Webkit browsers [#6782](https://github.com/diaspora/diaspora/pull/6782) diff --git a/app/models/mention.rb b/app/models/mention.rb index 47c2f719a..caab2a8b2 100644 --- a/app/models/mention.rb +++ b/app/models/mention.rb @@ -3,8 +3,6 @@ # the COPYRIGHT file. class Mention < ActiveRecord::Base - REGEX = /@\{([^;]+); ([^\}]+)\}/ - belongs_to :post belongs_to :person validates :post, :presence => true