summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-15 20:07:06 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-15 20:07:06 +0100
commit1f532bccdd238e78dd217509bb81f1a7098376e2 (patch)
treefd5ac33c27f89371d7f42705340d626037ea3481
parentc0ca16a0979a58a4db8e8ccab6a9ac6bc49e09ca (diff)
downloadthemes-1f532bccdd238e78dd217509bb81f1a7098376e2.tar.gz
themes-1f532bccdd238e78dd217509bb81f1a7098376e2.tar.bz2
themes-1f532bccdd238e78dd217509bb81f1a7098376e2.zip
Remove unused group model code
-rwxr-xr-xincludes/classes/BitThemes.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/includes/classes/BitThemes.php b/includes/classes/BitThemes.php
index 5bb11bc..0d6a07e 100755
--- a/includes/classes/BitThemes.php
+++ b/includes/classes/BitThemes.php
@@ -768,38 +768,6 @@ class BitThemes extends BitSingleton {
}
/**
- * transform groups string to handy array
- *
- * @param string $pParseString either space separated list of groups or serialised array
- * @return array of groups
- */
- public function parseGroups( string $pParseString ): array {
- $ret = [];
- // convert groups string to hash
- if( !empty($pParseString) && preg_match( '/[A-Za-z]/', $pParseString )) {
- // old style serialized group names
- if( $grps = @unserialize( $pParseString )) {
- foreach( $grps as $grp ) {
- global $gBitUser;
- if( !( $groupId = \array_search( $grp, $gBitUser->mGroups ))) {
- if( $gBitUser->isAdmin() ) {
- $ret[] = $gBitUser->groupExists( $grp );
- }
- }
-
- if( @$this->verifyId( $groupId )) {
- $ret[] = $groupId;
- }
- }
- }
- } else {
- // new imploded style
- $ret = explode( ' ', $pParseString ?? '' );
- }
- return $ret;
- }
-
- /**
* transform roles string to handy array
*
* @param string $pParseString either space separated list of roles or serialised array