From 854110cb73e86489172f61746442d21f4507cdd9 Mon Sep 17 00:00:00 2001 From: Lucas Bickel Date: Sat, 18 Mar 2017 12:21:25 +0100 Subject: [PATCH] Get rid of what I am sure is dead in dev_tools --- dev_tools/gen_doctrine_migration.php | 9 - dev_tools/release/jsmin/jsmin | Bin 9966 -> 0 bytes dev_tools/release/jsmin/jsmin.c | 299 --------------------------- 3 files changed, 308 deletions(-) delete mode 100644 dev_tools/gen_doctrine_migration.php delete mode 100755 dev_tools/release/jsmin/jsmin delete mode 100644 dev_tools/release/jsmin/jsmin.c diff --git a/dev_tools/gen_doctrine_migration.php b/dev_tools/gen_doctrine_migration.php deleted file mode 100644 index b2e8f2156..000000000 --- a/dev_tools/gen_doctrine_migration.php +++ /dev/null @@ -1,9 +0,0 @@ -BMj6}2;mi3Fc?VU8vE@ct$xf(tJ!^< z2*O{x$YJ}yRTH;m>^9MK8jq*xv`jJ+t1-3tNs38bSE)U=re#vq!Bfe?fuxDOaj>`F zIq%-p+ox6A=}fO??>XnY=bU@az4zVsbl*GC6x!}7DG{o8#BU3hN_B?pT8QC!N<#=; z)QfV|OGULP1+3wx^mNH7dQrMov|PIJf=(meBLRL?So>vre`T0)Memn!gjGD!jzqE>ly-yCPSF8!jH0N@k8-15we(l*(IJtn z6A|0Eo}fGyz;?f9wi2K9*$P>o&Wxh_Y*;9&?DoKp;{4wh6=z+n^WcVcb+OjkSZ8;t zx3;%_L+yrjfn+@J0LNbehm_*OyY{ndH6B%vsBc;pG?&yq^XZL^BW-WS-}-6n9}oV1 z&+dPEUazONnfR6ANAan6!E#ZXCVRg_R_tOhl#9F2_!h%IHwC_V3cPU&eCZT;0C=TXEQaQW!P({>2v8h!F}wdtFq5=~ z=tm{BxD(Un5pA|8z9{3SxurQ$Mde9rLCrI@sXPg%HKU3eFT&N@rnX+`pVpsRYlNS4 z;Izh6IqkrmYqj5jQy;3FbKtx_Wy632r@mDQrf-&yeizc{R-`++6S)P`KPbPFTmLV! z{UW#gI%?li9URFW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Fy-2HzKjZXXB6*{Z$mWghrMn`e?e-Uk@qVA*WJ%xII;T|uy z{Z*Geov2Y6knb`6CwqE^a`sQhX;jWjdv||s`Az83RIB*aeNeqe8IbwY^+QG3tGKQM zbM~*!iN83P)${tcG-0p&{JYCuJ%@y)eNY)ns_Ybf-(~;e+%RjtDDBmAt~8$%&uui2 zFO~mAX@5c5uU3YVR=DI}L8koOddhyP`;Qz}yepXK+v$2(_W!991h4EAOtQLm6h`!% z?D(9VxX%Eq$4`x$+E?iER=I=Cm(?{k`-;oCyZ^jF5ynf=dh|&xUPN476!(hFMe%94 zAL_zgyts1?cyu?6d`iVoQM^p3`;*hii&0VcokD!N2v5_U5c6Ifx|}SE&lDp?@mWIc z>rQ80+!54%U5I1XRQs@_!7F@1?XM0P`Bn(EZx-T}ct5E-A?CfJN~nF#+2|E>@!mD; zgrxpF>_^4$`PgTQ;S2B{witd_{yh>qmX#O(9jNQR5MLzJ^<0Qgyk9HC>1nXA*w@D# zaldOk>AIUHex857qO9n$DJe1z_cA_t9O#-V5tGNE3Ajhh5xZUeKF<1!#qiuPxQXle zDdrc85s9nov==z}x#;pURs5&e&s=fNHU59dc$GL^se_v+-vnDM{%-@Peuw7h6UyK& z;a6d(TlB|1@c3-=7wXn=brK)?XwBUHAxa>i34scaQWlF7fqcIwSPlNaYrO zr2ln^%WY5mQsRFjaf*Y=ukj=OW92%Dg3lO;p{)w|$V{Ci!DkDgrNB!(lhR?T# z-e+EzLjQ-rD;@ifn)kP+(0?CzMUi|zVm}ktwOao(ka(qMkvK2ciHi6x#^(uoY3VFA zz-ip*wJ4Pg*FvlVUV-cVg3FIC@!KxEiTqg zfzRi|=RSsk!x@znjf?%ANufLYqmx3+i1OKv{1BzE4L BNM-;4 diff --git a/dev_tools/release/jsmin/jsmin.c b/dev_tools/release/jsmin/jsmin.c deleted file mode 100644 index 74ba9233f..000000000 --- a/dev_tools/release/jsmin/jsmin.c +++ /dev/null @@ -1,299 +0,0 @@ -/* jsmin.c - 2012-04-15 - -Copyright (c) 2002 Douglas Crockford (www.crockford.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -The Software shall be used for Good, not Evil. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. -*/ - -#include -#include - -static int theA; -static int theB; -static int theLookahead = EOF; - - -/* isAlphanum -- return true if the character is a letter, digit, underscore, - dollar sign, or non-ASCII character. -*/ - -static int -isAlphanum(int c) -{ - return ((c >= 'a' && c <= 'z') || (c >= '0' && c <= '9') || - (c >= 'A' && c <= 'Z') || c == '_' || c == '$' || c == '\\' || - c > 126); -} - - -/* get -- return the next character from stdin. Watch out for lookahead. If - the character is a control character, translate it to a space or - linefeed. -*/ - -static int -get() -{ - int c = theLookahead; - theLookahead = EOF; - if (c == EOF) { - c = getc(stdin); - } - if (c >= ' ' || c == '\n' || c == EOF) { - return c; - } - if (c == '\r') { - return '\n'; - } - return ' '; -} - - -/* peek -- get the next character without getting it. -*/ - -static int -peek() -{ - theLookahead = get(); - return theLookahead; -} - - -/* next -- get the next character, excluding comments. peek() is used to see - if a '/' is followed by a '/' or '*'. -*/ - -static int -next() -{ - int c = get(); - if (c == '/') { - switch (peek()) { - case '/': - for (;;) { - c = get(); - if (c <= '\n') { - return c; - } - } - case '*': - get(); - for (;;) { - switch (get()) { - case '*': - if (peek() == '/') { - get(); - return ' '; - } - break; - case EOF: - fprintf(stderr, "Error: JSMIN Unterminated comment.\n"); - exit(1); - } - } - default: - return c; - } - } - return c; -} - - -/* action -- do something! What you do is determined by the argument: - 1 Output A. Copy B to A. Get the next B. - 2 Copy B to A. Get the next B. (Delete A). - 3 Get the next B. (Delete B). - action treats a string as a single character. Wow! - action recognizes a regular expression if it is preceded by ( or , or =. -*/ - -static void -action(int d) -{ - switch (d) { - case 1: - putc(theA, stdout); - case 2: - theA = theB; - if (theA == '\'' || theA == '"' || theA == '`') { - for (;;) { - putc(theA, stdout); - theA = get(); - if (theA == theB) { - break; - } - if (theA == '\\') { - putc(theA, stdout); - theA = get(); - } - if (theA == EOF) { - fprintf(stderr, "Error: JSMIN unterminated string literal."); - exit(1); - } - } - } - case 3: - theB = next(); - if (theB == '/' && (theA == '(' || theA == ',' || theA == '=' || - theA == ':' || theA == '[' || theA == '!' || - theA == '&' || theA == '|' || theA == '?' || - theA == '{' || theA == '}' || theA == ';' || - theA == '\n')) { - putc(theA, stdout); - putc(theB, stdout); - for (;;) { - theA = get(); - if (theA == '[') { - for (;;) { - putc(theA, stdout); - theA = get(); - if (theA == ']') { - break; - } - if (theA == '\\') { - putc(theA, stdout); - theA = get(); - } - if (theA == EOF) { - fprintf(stderr, - "Error: JSMIN unterminated set in Regular Expression literal.\n"); - exit(1); - } - } - } else if (theA == '/') { - break; - } else if (theA =='\\') { - putc(theA, stdout); - theA = get(); - } - if (theA == EOF) { - fprintf(stderr, - "Error: JSMIN unterminated Regular Expression literal.\n"); - exit(1); - } - putc(theA, stdout); - } - theB = next(); - } - } -} - - -/* jsmin -- Copy the input to the output, deleting the characters which are - insignificant to JavaScript. Comments will be removed. Tabs will be - replaced with spaces. Carriage returns will be replaced with linefeeds. - Most spaces and linefeeds will be removed. -*/ - -static void -jsmin() -{ - if (peek() == 0xEF) { - get(); - get(); - get(); - } - theA = '\n'; - action(3); - while (theA != EOF) { - switch (theA) { - case ' ': - if (isAlphanum(theB)) { - action(1); - } else { - action(2); - } - break; - case '\n': - switch (theB) { - case '{': - case '[': - case '(': - case '+': - case '-': - case '!': - case '~': - action(1); - break; - case ' ': - action(3); - break; - default: - if (isAlphanum(theB)) { - action(1); - } else { - action(2); - } - } - break; - default: - switch (theB) { - case ' ': - if (isAlphanum(theA)) { - action(1); - break; - } - action(3); - break; - case '\n': - switch (theA) { - case '}': - case ']': - case ')': - case '+': - case '-': - case '"': - case '\'': - case '`': - action(1); - break; - default: - if (isAlphanum(theA)) { - action(1); - } else { - action(3); - } - } - break; - default: - action(1); - break; - } - } - } -} - - -/* main -- Output any command line arguments as comments - and then minify the input. -*/ -extern int -main(int argc, char* argv[]) -{ - int i; - for (i = 1; i < argc; i += 1) { - fprintf(stdout, "// %s\n", argv[i]); - } - jsmin(); - return 0; -}