From a69fca2310d398681f3de3fa6efd903d6f00f710 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Fri, 5 May 2023 22:23:33 +0100 Subject: T671: remove unused executables --- scripts/vyatta-check-typeless-node.pl | 14 ------------- scripts/vyatta-validate-type.pl | 39 ----------------------------------- 2 files changed, 53 deletions(-) delete mode 100755 scripts/vyatta-check-typeless-node.pl delete mode 100755 scripts/vyatta-validate-type.pl (limited to 'scripts') 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 -# 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] \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; -- cgit v1.2.3