From 78742c719d6e127b6c1a74767485d02c03be1c66 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 30 Jan 2014 09:41:40 -0600
Subject: [PATCH] i18n: Remove unused, possibly incorrect formatting

These functions don't appear to be used an could corrupt UTF-8 encoded text
---
 include/class.format.php | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/include/class.format.php b/include/class.format.php
index 31650f2c6..90a73b4f6 100644
--- a/include/class.format.php
+++ b/include/class.format.php
@@ -30,10 +30,6 @@ class Format {
         return round(($bytes/1048576),1).' mb';
     }
 
-    function file_name($filename) {
-        return preg_replace('/\s+/', '_', $filename);
-    }
-
     /* encode text into desired encoding - taking into accout charset when available. */
     function encode($text, $charset=null, $encoding='utf-8') {
 
@@ -380,10 +376,6 @@ class Format {
     }
 
 
-    function linebreaks($string) {
-        return urldecode(ereg_replace("%0D", " ", urlencode($string)));
-    }
-
     function viewableImages($html, $script='image.php') {
         return preg_replace_callback('/"cid:([\\w.-]{32})"/',
         function($match) use ($script) {
-- 
GitLab