Skip to content

Commit 26ae16c

Browse files
committed
removes useless variable definition
1 parent 66770fe commit 26ae16c

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

app/models/document.rb

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -19,57 +19,6 @@ class Document < ApplicationRecord
1919
validate :location_uniqueness_check
2020
validate :document_type_uniqueness_check
2121

22-
VALID_NAMES = [
23-
'Terms of Service',
24-
'Privacy Policy',
25-
'Imprint',
26-
'Trackers Policy',
27-
'Developer Terms',
28-
'Community Guidelines',
29-
'Deceased Users',
30-
'Acceptable Use Policy',
31-
'Restricted Use Policy',
32-
'Commercial Terms',
33-
'Copyright Claims Policy',
34-
'Law Enforcement Guidelines',
35-
'Human Rights Policy',
36-
'In-App Purchases Policy',
37-
'Review Guidelines',
38-
'Brand Guidelines',
39-
'Quality Guidelines',
40-
'Data Controller Agreement',
41-
'Data Processor Agreement',
42-
'User Consent Policy',
43-
'Closed Captioning Policy',
44-
'Seller Warranty',
45-
'Single Sign-On Policy',
46-
'Vulnerability Disclosure Policy',
47-
'Live Policy',
48-
'Complaints Policy',
49-
'Conditions of Carriage',
50-
'General Conditions of Sale',
51-
'Marketplace Buyers Conditions',
52-
'Marketplace Sellers Conditions',
53-
'Frequently Asked Questions',
54-
'Corporate Social Responsibility',
55-
'Social Media Policy',
56-
'Uniform Disclosure',
57-
'Affiliate Disclosure',
58-
'Safety Guidelines',
59-
'Telephone Communication Guidelines',
60-
'Records Keeping Policy',
61-
'Service Level Agreement',
62-
'Legal Information',
63-
'Policy',
64-
'About',
65-
'Miscellaneous Agreement',
66-
'Ranking Parameters Description',
67-
'Premium Partner Conditions',
68-
'Platform to Business Notice',
69-
'Business Mediation Policy',
70-
'Business Privacy Policy'
71-
].freeze
72-
7322
def location_uniqueness_check
7423
doc = Document.where(url: url, xpath: xpath, status: nil)
7524

0 commit comments

Comments
 (0)