Index: trunk/extensions/Maps/includes/parserHooks/Maps_DisplayPoint.php |
— | — | @@ -32,38 +32,7 @@ |
33 | 33 | return $instance->init( $wgParser ); |
34 | 34 | } |
35 | 35 | |
36 | | - public static function initialize() { |
37 | | - |
38 | | - } |
39 | | - |
40 | 36 | /** |
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 | | - /** |
68 | 37 | * Gets the name of the parser hook. |
69 | 38 | * @see ParserHook::getName |
70 | 39 | * |