diff options
author | Daniil Baturin <daniil@baturin.org> | 2023-05-05 22:23:33 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2023-05-05 22:23:33 +0100 |
commit | a69fca2310d398681f3de3fa6efd903d6f00f710 (patch) | |
tree | d3734360f01a675cc4df9f605b68237ec2b58b95 /scripts | |
parent | 81048da3bc1438b89e2b9bdb3006cf886d1f548f (diff) | |
download | vyatta-cfg-a69fca2310d398681f3de3fa6efd903d6f00f710.tar.gz vyatta-cfg-a69fca2310d398681f3de3fa6efd903d6f00f710.zip |
T671: remove unused executables
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-check-typeless-node.pl | 14 | ||||
-rwxr-xr-x | scripts/vyatta-validate-type.pl | 39 |
2 files changed, 0 insertions, 53 deletions
diff --git a/scripts/vyatta-check-typeless-node.pl b/scripts/vyatta-check-typeless-node.pl deleted file mode 100755 index 103141b..0000000 --- a/scripts/vyatta-check-typeless-node.pl +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/perl -use strict; -use lib "/opt/vyatta/share/perl5/"; -use Vyatta::Config; - -## Check if a typeless node exists -# this is a lame little script to get around bug 2525 not being fixed. -# i.e. $VAR(./node/) always expands to true. Once bug 2525 is properly -# fixed, this can go away -my $node = shift; -my $config = new Vyatta::Config; - -exit 0 if ($config->exists("$node")); -exit 1; diff --git a/scripts/vyatta-validate-type.pl b/scripts/vyatta-validate-type.pl deleted file mode 100755 index f180489..0000000 --- a/scripts/vyatta-validate-type.pl +++ /dev/null @@ -1,39 +0,0 @@ -#!/usr/bin/perl - -# Author: An-Cheng Huang <ancheng@vyatta.com> -# Date: 2007 -# Description: script to validate types - -# **** License **** -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License version 2 as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# This code was originally developed by Vyatta, Inc. -# Portions created by Vyatta are Copyright (C) 2006, 2007, 2008 Vyatta, Inc. -# All Rights Reserved. -# **** End License **** - -use strict; -use lib "/opt/vyatta/share/perl5/"; -use Vyatta::TypeChecker; - -# validate a value of a specific type -if ($#ARGV < 1) { - print "usage: vyatta-validate-type.pl [-q] <type> <value>\n"; - exit 1; -} - -my $quiet = undef; -if ($ARGV[0] eq '-q') { - shift; - $quiet = 1; -} - -exit 0 if (Vyatta::TypeChecker::validateType($ARGV[0], $ARGV[1], $quiet)); -exit 1; |