9595use  Sabre \VObject \Reader ;
9696use  Sabre \VObject \Recur \EventIterator ;
9797use  Symfony \Component \EventDispatcher \EventDispatcherInterface ;
98- use  Symfony \Component \EventDispatcher \GenericEvent ;
9998use  function  array_merge ;
10099use  function  array_values ;
101100use  function  explode ;
@@ -246,7 +245,6 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
246245	 * @param ISecureRandom $random 
247246	 * @param ILogger $logger 
248247	 * @param IEventDispatcher $dispatcher 
249- 	 * @param EventDispatcherInterface $legacyDispatcher 
250248	 * @param bool $legacyEndpoint 
251249	 */ 
252250	public  function  __construct (IDBConnection $ db
@@ -256,7 +254,6 @@ public function __construct(IDBConnection $db,
256254								ISecureRandom $ random
257255								ILogger $ logger
258256								IEventDispatcher $ dispatcher
259- 								EventDispatcherInterface $ legacyDispatcher
260257								IConfig $ config
261258								bool  $ legacyEndpointfalse ) {
262259		$ this db  = $ db
@@ -266,7 +263,6 @@ public function __construct(IDBConnection $db,
266263		$ this random  = $ random
267264		$ this logger  = $ logger
268265		$ this dispatcher  = $ dispatcher
269- 		$ this legacyDispatcher  = $ legacyDispatcher
270266		$ this config  = $ config
271267		$ this legacyEndpoint  = $ legacyEndpoint
272268	}
@@ -1335,15 +1331,6 @@ public function createCalendarObject($calendarId, $objectUri, $calendarData, $ca
13351331			$ subscriptionRow$ this getSubscriptionById ($ calendarId
13361332
13371333			$ this dispatcher ->dispatchTyped (new  CachedCalendarObjectCreatedEvent ((int )$ calendarId$ subscriptionRow$ objectRow
1338- 			$ this legacyDispatcher ->dispatch ('\OCA\DAV\CalDAV\CalDavBackend::createCachedCalendarObject ' , new  GenericEvent (
1339- 				'\OCA\DAV\CalDAV\CalDavBackend::createCachedCalendarObject ' ,
1340- 				[
1341- 					'subscriptionId '  => $ calendarId
1342- 					'calendarData '  => $ subscriptionRow
1343- 					'shares '  => [],
1344- 					'objectData '  => $ objectRow
1345- 				]
1346- 			));
13471334		}
13481335
13491336		return  '" '  . $ extraData'etag ' ] . '" ' ;
@@ -1400,15 +1387,6 @@ public function updateCalendarObject($calendarId, $objectUri, $calendarData, $ca
14001387				$ subscriptionRow$ this getSubscriptionById ($ calendarId
14011388
14021389				$ this dispatcher ->dispatchTyped (new  CachedCalendarObjectUpdatedEvent ((int )$ calendarId$ subscriptionRow$ objectRow
1403- 				$ this legacyDispatcher ->dispatch ('\OCA\DAV\CalDAV\CalDavBackend::updateCachedCalendarObject ' , new  GenericEvent (
1404- 					'\OCA\DAV\CalDAV\CalDavBackend::updateCachedCalendarObject ' ,
1405- 					[
1406- 						'subscriptionId '  => $ calendarId
1407- 						'calendarData '  => $ subscriptionRow
1408- 						'shares '  => [],
1409- 						'objectData '  => $ objectRow
1410- 					]
1411- 				));
14121390			}
14131391		}
14141392
@@ -1466,15 +1444,6 @@ public function deleteCalendarObject($calendarId, $objectUri, $calendarType = se
14661444				$ subscriptionRow$ this getSubscriptionById ($ calendarId
14671445
14681446				$ this dispatcher ->dispatchTyped (new  CachedCalendarObjectDeletedEvent ((int )$ calendarId$ subscriptionRow$ data
1469- 				$ this legacyDispatcher ->dispatch ('\OCA\DAV\CalDAV\CalDavBackend::deleteCachedCalendarObject ' , new  GenericEvent (
1470- 					'\OCA\DAV\CalDAV\CalDavBackend::deleteCachedCalendarObject ' ,
1471- 					[
1472- 						'subscriptionId '  => $ calendarId
1473- 						'calendarData '  => $ subscriptionRow
1474- 						'shares '  => [],
1475- 						'objectData '  => $ data
1476- 					]
1477- 				));
14781447			}
14791448		} else  {
14801449			$ pathInfopathinfo ($ data'uri ' ]);
@@ -2538,13 +2507,6 @@ public function updateSubscription($subscriptionId, PropPatch $propPatch) {
25382507
25392508			$ subscriptionRow$ this getSubscriptionById ($ subscriptionId
25402509			$ this dispatcher ->dispatchTyped (new  SubscriptionUpdatedEvent ((int )$ subscriptionId$ subscriptionRow$ mutations
2541- 			$ this legacyDispatcher ->dispatch ('\OCA\DAV\CalDAV\CalDavBackend::updateSubscription ' , new  GenericEvent (
2542- 				'\OCA\DAV\CalDAV\CalDavBackend::updateSubscription ' ,
2543- 				[
2544- 					'subscriptionId '  => $ subscriptionId
2545- 					'subscriptionData '  => $ subscriptionRow
2546- 					'propertyMutations '  => $ mutations
2547- 				]));
25482510
25492511			return  true ;
25502512		});
@@ -2856,15 +2818,6 @@ public function updateShares($shareable, $add, $remove) {
28562818		$ calendarRow$ this getCalendarById ($ calendarId
28572819		$ oldShares$ this getShares ($ calendarId
28582820
2859- 		$ this legacyDispatcher ->dispatch ('\OCA\DAV\CalDAV\CalDavBackend::updateShares ' , new  GenericEvent (
2860- 			'\OCA\DAV\CalDAV\CalDavBackend::updateShares ' ,
2861- 			[
2862- 				'calendarId '  => $ calendarId
2863- 				'calendarData '  => $ calendarRow
2864- 				'shares '  => $ oldShares
2865- 				'add '  => $ add
2866- 				'remove '  => $ remove
2867- 			]));
28682821		$ this calendarSharingBackend ->updateShares ($ shareable$ add$ remove
28692822
28702823		$ this dispatcher ->dispatchTyped (new  CalendarShareUpdatedEvent ((int )$ calendarId$ calendarRow$ oldShares$ add$ remove
@@ -2886,13 +2839,6 @@ public function getShares($resourceId) {
28862839	public  function  setPublishStatus ($ value$ calendar
28872840		$ calendarId$ calendargetResourceId ();
28882841		$ calendarData$ this getCalendarById ($ calendarId
2889- 		$ this legacyDispatcher ->dispatch ('\OCA\DAV\CalDAV\CalDavBackend::publishCalendar ' , new  GenericEvent (
2890- 			'\OCA\DAV\CalDAV\CalDavBackend::updateShares ' ,
2891- 			[
2892- 				'calendarId '  => $ calendarId
2893- 				'calendarData '  => $ calendarData
2894- 				'public '  => $ value
2895- 			]));
28962842
28972843		$ query$ this db ->getQueryBuilder ();
28982844		if  ($ value
0 commit comments