cvs: pear-core /PEAR ChannelFile.php

From: Date: Wed, 03 Nov 2004 21:48:50 +0000
Subject: cvs: pear-core /PEAR ChannelFile.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1211@lists.php.net to get a copy of this message
cellog Wed Nov 3 16:48:50 2004 EDT Modified files: /pear-core/PEAR ChannelFile.php Log: remove unused methods http://cvs.php.net/diff.php/pear-core/PEAR/ChannelFile.php?r1=1.26&r2=1.27&ty=u Index: pear-core/PEAR/ChannelFile.php diff -u pear-core/PEAR/ChannelFile.php:1.26 pear-core/PEAR/ChannelFile.php:1.27 --- pear-core/PEAR/ChannelFile.php:1.26 Mon Oct 25 12:25:22 2004 +++ pear-core/PEAR/ChannelFile.php Wed Nov 3 16:48:46 2004 @@ -16,7 +16,7 @@ // | Authors: Gregory Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: ChannelFile.php,v 1.26 2004/10/25 16:25:22 cellog Exp $ +// $Id: ChannelFile.php,v 1.27 2004/11/03 21:48:46 cellog Exp $ require_once 'PEAR/Common.php'; @@ -1518,51 +1518,6 @@ } /** - * Get the regular expression needed to validate "channel::package[-version/state]" - * @deprecated will be switching all of this over to the validation object soon - * @return string - */ - function getChannelPackageDownloadRegex() - { - $val = &$this->getValidationObject(); - if ($val) { - return $val->getChannelPackageDownloadRegex(); - } else { - return _PEAR_COMMON_CHANNEL_DOWNLOAD_PREG; - } - } - - /** - * Get the regular expression needed to validate "package[-version/state]" - * @deprecated will be switching all of this over to the validation object soon - * @return string - */ - function getPackageDownloadRegex() - { - $val = &$this->getValidationObject(); - if ($val) { - return $val->getPackageDownloadRegex(); - } else { - return _PEAR_COMMON_PACKAGE_DOWNLOAD_PREG; - } - } - - /** - * validate a package name for this channel - * @deprecated will be switching all of this over to the validation object soon - * @return bool - */ - function validPackageName($name) - { - $val = &$this->getValidationObject(); - if ($val) { - return $val->validPackageName($name); - } else { - return (bool)preg_match(PEAR_COMMON_PACKAGE_NAME_PREG, $name); - } - } - - /** * Add a protocol to the provides section * @param string protocol type * @param string protocol version

« previous php.pear.core (#1211) next »