Skip to content

Commit

Permalink
Removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Jul 12, 2013
1 parent 3f08a01 commit 949de19
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 29 deletions.
6 changes: 0 additions & 6 deletions DAL.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
<?php

$CardTable = "mtg_cards";

function sqlBool($b, $db){
$b = $db->real_escape_string($b);
if ($b) return '1';
else return '0';
}

function sqlString($s, $db){
return trim($db->real_escape_string($s));
Expand Down
20 changes: 0 additions & 20 deletions card_extractors.php
Original file line number Diff line number Diff line change
@@ -1,24 +1,4 @@
<?php
function get_tag_alt_texts($line){

$value = "";
$NEEDLE = "alt=\"";
$NEEDLE_LENGTH = 5;
$first=true;

while (str_in_str($NEEDLE, $line)){
// Destroy line up to and including next {alt="}
$line = substr($line, strpos($line, $NEEDLE) + $NEEDLE_LENGTH);
// Get payload (text up to closing speech mark)
$datum = substr($line, 0, strpos($line, "\""));
// Concatenate it with space
$value .= ($first ? "$datum" : " + $datum");
$first=false;
}

return $value;
}

function get_line_content($l){
//cardtextbox divs represent seperate lines, which we'll represent with underscores
$v = str_replace("</div><div class=\"cardtextbox\">", " _ ", $l);
Expand Down
3 changes: 0 additions & 3 deletions string_extensions.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<?php
function str_in_str($needle, $haystack) {
return (strpos($haystack, $needle) !== false);
}

function strip_quotes($s){
$s = trim($s);
Expand Down

0 comments on commit 949de19

Please sign in to comment.