File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ contract GlobalRegistrar is Registrar, AuctionSystem {
118
118
119
119
function() {
120
120
// prevent people from just sending funds to the registrar
121
- __throw() ;
121
+ throw ;
122
122
}
123
123
124
124
function onAuctionEnd(string _name) internal {
@@ -135,19 +135,19 @@ contract GlobalRegistrar is Registrar, AuctionSystem {
135
135
136
136
function reserve(string _name) external {
137
137
if (bytes(_name).length == 0)
138
- __throw() ;
138
+ throw ;
139
139
bool needAuction = requiresAuction(_name);
140
140
if (needAuction)
141
141
{
142
142
if (now < m_toRecord[_name].renewalDate)
143
- __throw() ;
143
+ throw ;
144
144
bid(_name, msg.sender, msg.value);
145
145
}
146
146
else
147
147
{
148
148
Record record = m_toRecord[_name];
149
149
if (record.owner != 0)
150
- __throw() ;
150
+ throw ;
151
151
m_toRecord[_name].owner = msg.sender;
152
152
Changed(_name);
153
153
}
@@ -210,11 +210,6 @@ contract GlobalRegistrar is Registrar, AuctionSystem {
210
210
function content(string _name) constant returns (bytes32) { return m_toRecord[_name].content; }
211
211
function name(address _addr) constant returns (string o_name) { return m_toName[_addr]; }
212
212
213
- function __throw() internal {
214
- // workaround until we have "throw"
215
- uint[] x; x[1];
216
- }
217
-
218
213
mapping (address => string) m_toName;
219
214
mapping (string => Record) m_toRecord;
220
215
}
You can’t perform that action at this time.
0 commit comments