r74292 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r74291‎ | r74292 | r74293 >
Date:09:29, 5 October 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Removed dead code
Modified paths:
  • /trunk/extensions/Maps/includes/parserHooks/Maps_DisplayPoint.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/includes/parserHooks/Maps_DisplayPoint.php
@@ -32,38 +32,7 @@
3333 return $instance->init( $wgParser );
3434 }
3535
36 - public static function initialize() {
37 -
38 - }
39 -
4036 /**
41 - * Formats a set of points that can have meta data provided.
42 - *
43 - * @param string $locations
44 - * @param string $name The name of the parameter.
45 - * @param array $parameters Array containing data about the so far handled parameters.
46 - */
47 - public static function formatGeoPoints( &$locations, $name, array $parameters, $metaDataSeparator = false ) {
48 - $locations = (array)$locations;
49 - foreach ( $locations as &$location ) {
50 - self::formatGeoPoint( $location, $name, $parameters, $metaDataSeparator );
51 - }
52 - }
53 -
54 - public static function formatGeoPoint( &$location, $name, array $parameters, $metaDataSeparator = false ) {
55 - if ( $metaDataSeparator !== false ) {
56 - $segments = explode( $metaDataSeparator, $location );
57 - }
58 - else {
59 - $segments = array( $location );
60 - }
61 -
62 - MapsMapper::formatLocation( $segments[0], $name, $parameters );
63 -
64 - $location = $segments;
65 - }
66 -
67 - /**
6837 * Gets the name of the parser hook.
6938 * @see ParserHook::getName
7039 *

Status & tagging log