@@ -106,8 +106,6 @@ contract VanityURL is Ownable,Pausable {
106
106
107
107
// This declares a state variable that would store the contract address
108
108
Token public tokenAddress;
109
- // This declares a state variable that would store mapping for reserved _keyword
110
- mapping (string => uint ) reservedKeywords;
111
109
// This declares a state variable that mapping for vanityURL to address
112
110
mapping (string => address ) vanity_address_mapping;
113
111
// This declares a state variable that mapping for address to vanityURL
@@ -140,19 +138,6 @@ contract VanityURL is Ownable,Pausable {
140
138
transferTokenTo = _transferTokenTo;
141
139
}
142
140
143
- /* function to add reserve keyword */
144
- function addReservedKeyword (string _keyword ) onlyOwner public {
145
- reservedKeywords[_keyword] = 1 ;
146
- }
147
-
148
-
149
- /*
150
- function to remove reserved keyword
151
- */
152
- function removeReservedKeyword (string _keyword ) onlyOwner public {
153
- delete (reservedKeywords[_keyword]);
154
- }
155
-
156
141
/* function to set reserve pricing */
157
142
function setReservePricing (uint256 _reservePricing ) onlyOwner public {
158
143
reservePricing = _reservePricing;
@@ -182,7 +167,6 @@ contract VanityURL is Ownable,Pausable {
182
167
require (checkForValidity (_vanity_url));
183
168
require (vanity_address_mapping[_vanity_url] == address (0x0 ));
184
169
require (bytes (address_vanity_mapping[msg .sender ]).length == 0 );
185
- require (reservedKeywords[_vanity_url] != 1 );
186
170
require (tokenAddress.doTransfer (msg .sender ,transferTokenTo,reservePricing));
187
171
vanity_address_mapping[_vanity_url] = msg .sender ;
188
172
address_vanity_mapping[msg .sender ] = _vanity_url;
@@ -239,7 +223,6 @@ contract VanityURL is Ownable,Pausable {
239
223
_vanity_url = _toLower (_vanity_url);
240
224
require (checkForValidity (_vanity_url));
241
225
require (vanity_address_mapping[_vanity_url] == address (0x0 ));
242
- require (reservedKeywords[_vanity_url] != 1 );
243
226
vanity_address_mapping[_vanity_url] = msg .sender ;
244
227
address_vanity_mapping[msg .sender ] = _vanity_url;
245
228
VanityReserved (msg .sender , _vanity_url);
@@ -263,7 +246,6 @@ contract VanityURL is Ownable,Pausable {
263
246
function reserveVanityURLByOwner (address _to ,string _vanity_url ) whenNotPaused onlyOwner public {
264
247
_vanity_url = _toLower (_vanity_url);
265
248
require (checkForValidity (_vanity_url));
266
- require (reservedKeywords[_vanity_url] != 1 );
267
249
/* check if vanity url is being used by anyone */
268
250
if (vanity_address_mapping[_vanity_url] != address (0x0 ))
269
251
{
0 commit comments