summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
committerAnthony G. Basile <blueness@gentoo.org>2020-01-06 14:32:30 -0500
commit10ef81bf85ad0a4bad0d204838e14c99ca2526f7 (patch)
treeb4bb36a326d41de12d1a6181d2a2baf34696ac24 /plugins/jetpack/sync/class.jetpack-sync-simple-codec.php
parentUpdating script for Update (diff)
downloadblogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.gz
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.tar.bz2
blogs-gentoo-10ef81bf85ad0a4bad0d204838e14c99ca2526f7.zip
Update jetpack 8.0
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'plugins/jetpack/sync/class.jetpack-sync-simple-codec.php')
-rw-r--r--plugins/jetpack/sync/class.jetpack-sync-simple-codec.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/plugins/jetpack/sync/class.jetpack-sync-simple-codec.php b/plugins/jetpack/sync/class.jetpack-sync-simple-codec.php
deleted file mode 100644
index 7bd9aaac..00000000
--- a/plugins/jetpack/sync/class.jetpack-sync-simple-codec.php
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-require_once dirname( __FILE__ ) . '/class.jetpack-sync-json-deflate-array-codec.php';
-
-/**
- * An implementation of iJetpack_Sync_Codec that uses gzip's DEFLATE
- * algorithm to compress objects serialized using json_encode
- */
-class Jetpack_Sync_Simple_Codec extends Jetpack_Sync_JSON_Deflate_Array_Codec {
- const CODEC_NAME = 'simple';
-
- public function name() {
- return self::CODEC_NAME;
- }
-
- public function encode( $object ) {
- return base64_encode( $this->json_serialize( $object ) );
- }
-
- public function decode( $input ) {
- return $this->json_unserialize( base64_decode( $input ) );
- }
-
-}