r41224 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41223‎ | r41224 | r41225 >
Date:13:49, 24 September 2008
Author:aaron
Status:old
Tags:
Comment:
Remove commented out code
Modified paths:
  • /trunk/phase3/includes/RecentChange.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/RecentChange.php
@@ -174,40 +174,6 @@
175175 # Set the ID
176176 $this->mAttribs['rc_id'] = $dbw->insertId();
177177
178 - # Update old rows, if necessary
179 - if ( $this->mAttribs['rc_type'] == RC_EDIT ) {
180 - $lastTime = $this->mExtra['lastTimestamp'];
181 - #$now = $this->mAttribs['rc_timestamp'];
182 - #$curId = $this->mAttribs['rc_cur_id'];
183 -
184 - # Don't bother looking for entries that have probably
185 - # been purged, it just locks up the indexes needlessly.
186 - global $wgRCMaxAge;
187 - $age = time() - wfTimestamp( TS_UNIX, $lastTime );
188 - if( $age < $wgRCMaxAge ) {
189 - # live hack, will commit once tested - kate
190 - # Update rc_this_oldid for the entries which were current
191 - #
192 - #$oldid = $this->mAttribs['rc_last_oldid'];
193 - #$ns = $this->mAttribs['rc_namespace'];
194 - #$title = $this->mAttribs['rc_title'];
195 - #
196 - #$dbw->update( 'recentchanges',
197 - # array( /* SET */
198 - # 'rc_this_oldid' => $oldid
199 - # ), array( /* WHERE */
200 - # 'rc_namespace' => $ns,
201 - # 'rc_title' => $title,
202 - # 'rc_timestamp' => $dbw->timestamp( $lastTime )
203 - # ), $fname
204 - #);
205 - }
206 -
207 - # Update rc_cur_time
208 - #$dbw->update( 'recentchanges', array( 'rc_cur_time' => $now ),
209 - # array( 'rc_cur_id' => $curId ), $fname );
210 - }
211 -
212178 # Notify external application via UDP
213179 if ( $wgRC2UDPAddress && ( !$this->mAttribs['rc_bot'] || !$wgRC2UDPOmitBots ) ) {
214180 self::sendToUDP( $this->getIRCLine() );