From 7057d1dffcbf1170cf9da1e99959f7c33fe613eb Mon Sep 17 00:00:00 2001 From: Hugo Heuzard Date: Mon, 9 Dec 2024 09:30:01 +0100 Subject: [PATCH] Misc: remove unused files --- tools/emacs-format-js.el | 30 ------------------------------ tools/format-js.sh | 9 --------- 2 files changed, 39 deletions(-) delete mode 100644 tools/emacs-format-js.el delete mode 100755 tools/format-js.sh diff --git a/tools/emacs-format-js.el b/tools/emacs-format-js.el deleted file mode 100644 index 0b9cb30ed8..0000000000 --- a/tools/emacs-format-js.el +++ /dev/null @@ -1,30 +0,0 @@ -;;; File: emacs-format-file -;;; Stan Warford -;;; 17 May 2006 - -(setq js-indent-level 2) -(custom-set-variables - '(indent-tabs-mode nil) - '(tab-width 2)) - -(defun emacs-format-js () - "Format the whole buffer." - (js-mode) - (indent-region (point-min) (point-max) nil) - (delete-trailing-whitespace) - (save-buffer) - ) - -(defun emacs-format-js-ident () - "Format the whole buffer." - (js-mode) - (indent-region (point-min) (point-max) nil) - (save-buffer) - ) - -(defun emacs-format-js-clean () - "Format the whole buffer." - (js-mode) - (delete-trailing-whitespace) - (save-buffer) -) diff --git a/tools/format-js.sh b/tools/format-js.sh deleted file mode 100755 index 2deb9bd368..0000000000 --- a/tools/format-js.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -echo "# Removing tabs" -find ./ -regex "^\.\(/[a-zA-Z0-9_-.]*\)*\.js" -exec sed -i 's/ //g' {} \; - -echo "# Indent files" -SCRIPT=$(readlink -f $0) -SCRIPTPATH=`dirname $SCRIPT` -find ./ -regex "^\.\(/[a-zA-Z0-9_-.]*\)*\.js" -exec emacs -batch {} -l ${SCRIPTPATH}/emacs-format-js.el -f emacs-format-js \;