Skip to content

Commit

Permalink
chore: remove SOGoUI/UIxJSClose
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Jun 14, 2021
1 parent 89c31d8 commit 9dbb770
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 166 deletions.
18 changes: 0 additions & 18 deletions UI/Common/UIxAclEditor.m
Expand Up @@ -251,24 +251,6 @@ - (BOOL) shouldTakeValuesFromRequest: (WORequest *) request
return ([[request method] isEqualToString: @"POST"]);
}

- (id <WOActionResults>) saveAclsAction
{
NSEnumerator *aclsEnum;
SOGoObject *clientObject;
NSString *currentUID, *ownerLogin;

clientObject = [self clientObject];
ownerLogin = [clientObject ownerInContext: context];
aclsEnum = [[self aclsForObject] objectEnumerator];
while ((currentUID = [[aclsEnum nextObject] objectForKey: @"c_uid"]))
if ([currentUID isEqualToString: ownerLogin]
|| [savedUIDs containsObject: currentUID])
[users removeObjectForKey: currentUID];
[clientObject removeAclsForUsers: [users allKeys]];

return [self jsCloseWithRefreshMethod: nil];
}

- (BOOL) isPublicAccessEnabled
{
return [[SOGoSystemDefaults sharedSystemDefaults] enablePublicAccess];
Expand Down
2 changes: 0 additions & 2 deletions UI/SOGoUI/GNUmakefile
Expand Up @@ -15,14 +15,12 @@ ADDITIONAL_LDFLAGS += -Wl,--rpath,$(SOGO_SYSLIBDIR)/sogo

libSOGoUI_HEADER_FILES += \
\
UIxJSClose.h \
UIxComponent.h \
SOGoAptFormatter.h \
SOGoDirectAction.h

libSOGoUI_OBJC_FILES += \
\
UIxJSClose.m \
UIxComponent.m \
UIxModuleAccessDenied.m \
SOGoAptFormatter.m \
Expand Down
2 changes: 0 additions & 2 deletions UI/SOGoUI/UIxComponent.h
Expand Up @@ -80,8 +80,6 @@

- (BOOL) hideFrame;

- (UIxComponent *) jsCloseWithRefreshMethod: (NSString *) methodName;

/* SoUser */
- (NSString *) shortUserNameForDisplay;

Expand Down
13 changes: 1 addition & 12 deletions UI/SOGoUI/UIxComponent.m
Expand Up @@ -44,7 +44,7 @@
#import <SOGo/WOContext+SOGo.h>
#import <SOGo/WOResourceManager+SOGo.h>

#import "UIxJSClose.h"
#import "UIxComponent.h"


@interface UIxComponent (PrivateAPI)
Expand Down Expand Up @@ -448,17 +448,6 @@ - (BOOL) hideFrame
return ([[self queryParameterForKey: @"noframe"] boolValue]);
}

- (UIxComponent *) jsCloseWithRefreshMethod: (NSString *) methodName
{
UIxJSClose *jsClose;

jsClose = [UIxJSClose new];
[jsClose autorelease];
[jsClose setRefreshMethod: [methodName doubleQuotedString]];

return jsClose;
}

/* common conditions */
- (BOOL) canCreateOrModify
{
Expand Down
41 changes: 0 additions & 41 deletions UI/SOGoUI/UIxJSClose.h

This file was deleted.

65 changes: 0 additions & 65 deletions UI/SOGoUI/UIxJSClose.m

This file was deleted.

26 changes: 0 additions & 26 deletions UI/Templates/UIxJSClose.wox

This file was deleted.

0 comments on commit 9dbb770

Please sign in to comment.