From f2041c845bbfd13efa293f14611f59cd39e1badf Mon Sep 17 00:00:00 2001
From: Matthieu Marcillaud <marcimat@rezo.net>
Date: Wed, 22 Mar 2023 17:11:42 +0100
Subject: [PATCH] remove: Fonction `lignes_longues`

---
 ecrire/inc/filtres.php | 34 ----------------------------------
 1 file changed, 34 deletions(-)

diff --git a/ecrire/inc/filtres.php b/ecrire/inc/filtres.php
index 3533e282df..e5edcf7a94 100644
--- a/ecrire/inc/filtres.php
+++ b/ecrire/inc/filtres.php
@@ -1209,40 +1209,6 @@ function PtoBR($texte) {
 	return preg_replace('@^\s*<br />@S' . $u, '', $texte);
 }
 
-
-/**
- * Assure qu'un texte ne vas pas déborder d'un bloc
- * par la faute d'un mot trop long (souvent des URLs)
- *
- * Ne devrait plus être utilisé et fait directement en CSS par un style
- * `word-wrap:break-word;`
- *
- * @note
- *   Pour assurer la compatibilité du filtre, on encapsule le contenu par
- *   un `div` ou `span` portant ce style CSS inline.
- *
- * @filtre
- * @link https://www.spip.net/4298
- * @link http://www.alsacreations.com/tuto/lire/1038-gerer-debordement-contenu-css.html
- * @deprecated 3.1
- * @see Utiliser le style CSS `word-wrap:break-word;`
- *
- * @param string $texte texte
- * @return string texte encadré du style CSS
- */
-function lignes_longues($texte) {
-	trigger_deprecation('spip', '4.2', 'Using function or filter "%s" is deprecated, use CSS instead');
-
-	if (!strlen(trim($texte))) {
-		return $texte;
-	}
-	include_spip('inc/texte');
-	$tag = preg_match(',</?(' . _BALISES_BLOCS . ')[>[:space:]],iS', $texte) ?
-		'div' : 'span';
-
-	return "<$tag style='word-wrap:break-word;'>$texte</$tag>";
-}
-
 /**
  * Passe un texte en majuscules, y compris les accents, en HTML
  *
-- 
GitLab