code cleanup

This commit is contained in:
Martin Böttcher 2022-01-05 10:18:34 +01:00
parent ad394bc5e9
commit b498b6552c
2 changed files with 3 additions and 14 deletions

View File

@ -1,5 +1,5 @@
//
// Copyright (c) 2020 Open Whisper Systems. All rights reserved.
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
//
import Foundation
@ -18,13 +18,6 @@ extension DispatchQueue {
autoreleaseFrequency: .workItem)
}()
public static let sharedUserInitiatedConcurrent: DispatchQueue = {
return DispatchQueue(label: "org.whispersystems.signal.sharedUserInitiatedConcurrent",
qos: .userInitiated,
attributes: [.concurrent],
autoreleaseFrequency: .workItem)
}()
public static let sharedUtility: DispatchQueue = {
return DispatchQueue(label: "org.whispersystems.signal.sharedUtility",
qos: .utility,

View File

@ -1,5 +1,5 @@
//
// Copyright (c) 2021 Open Whisper Systems. All rights reserved.
// Copyright (c) 2022 Open Whisper Systems. All rights reserved.
//
import UIKit
@ -250,12 +250,8 @@ public class ConversationAvatarView: UIView, CVView, PrimaryImageView {
self.setNeedsLayout()
}
}
if Thread.isMainThread {
DispatchMainThreadSafe {
uiUpdateBlock()
} else {
DispatchQueue.main.async {
uiUpdateBlock()
}
}
}