Remove old (crash reports) debug info

This commit is contained in:
Allan Odgaard
2016-07-16 13:10:35 +02:00
parent 93e9d23a7d
commit 511e1d58a5
6 changed files with 2 additions and 16 deletions

View File

@@ -23,7 +23,6 @@
#import <Find/Find.h>
#import <BundlesManager/BundlesManager.h>
#import <network/network.h>
#import <crash/info.h>
#import <file/path_info.h>
#import <io/entries.h>
#import <scm/scm.h>
@@ -529,9 +528,6 @@ namespace
if([anIndexSet count] == 0 || _documents.empty())
return;
crash_reporter_info_t crashInfo(text::format("close %lu documents with %zu open and index of selected being %zu.", [anIndexSet count], _documents.size(), _selectedTabIndex));
crashInfo << to_s([anIndexSet description]);
std::vector<document::document_ptr> documentsToClose;
for(NSUInteger index = [anIndexSet firstIndex]; index != NSNotFound; index = [anIndexSet indexGreaterThanIndex:index])
documentsToClose.push_back(_documents[index]);
@@ -582,8 +578,6 @@ namespace
newSelectedTabIndex = newDocuments.empty() ? 0 : newDocuments.size() - 1;
}
crashInfo << text::format("keep %zu documents open, new selected index at %zu, create untitled %s", newDocuments.size(), newSelectedTabIndex, BSTR((createIfEmptyFlag && newDocuments.empty())));
if(createIfEmptyFlag && newDocuments.empty())
newDocuments.push_back(document::create());

View File

@@ -1,5 +1,5 @@
SOURCES = src/*.mm
CP_Resources = resources/*
LINK += BundleEditor BundlesManager Find HTMLOutputWindow OakAppKit OakFileBrowser OakFilterList OakFoundation OakSystem OakTextView Preferences bundles command crash document editor file io kvdb network ns scm settings text
LINK += BundleEditor BundlesManager Find HTMLOutputWindow OakAppKit OakFileBrowser OakFilterList OakFoundation OakSystem OakTextView Preferences bundles command document editor file io kvdb network ns scm settings text
EXPORT = src/DocumentController.h
FRAMEWORKS = Cocoa

View File

@@ -6,7 +6,6 @@
#import <settings/settings.h>
#import <oak/oak.h>
#import <ns/ns.h>
#import <crash/info.h>
@interface OakEncodingSaveOptionsViewController : NSViewController <NSOpenSavePanelDelegate>
{
@@ -92,7 +91,6 @@
- (void)panel:(NSSavePanel*)sender didChangeToDirectoryURL:(NSURL*)anURL
{
crash_reporter_info_t info("NSSavePanel did change to directory: " + to_s([anURL path]));
[self updateSettings:[self encodingForURL:[sender URL]]];
}
@end
@@ -114,10 +112,8 @@
[savePanel setNameFieldStringValue:[aPathSuggestion lastPathComponent]];
[savePanel setAccessoryView:optionsViewController.view];
[optionsViewController updateSettings:[optionsViewController encodingForURL:[savePanel URL]]];
crash_reporter_info_t info("Setup NSSavePanel delegate with path: " + to_s([[savePanel URL] path]));
savePanel.delegate = optionsViewController;
[savePanel beginSheetModalForWindow:aWindow completionHandler:^(NSInteger result) {
crash_reporter_info_t info("Clear NSSavePanel delegate");
savePanel.delegate = nil;
NSString* path = result == NSOKButton ? [[savePanel.URL filePathURL] path] : nil;
encoding::type encoding(to_s(optionsViewController.lineEndings), to_s(optionsViewController.encoding));

View File

@@ -10,7 +10,6 @@
#include <cf/run_loop.h>
#include <ns/ns.h>
#include <oak/debug.h>
#include <crash/info.h>
OAK_DEBUG_VAR(Document_Scanner);
OAK_DEBUG_VAR(Document_LRU);

View File

@@ -1,5 +1,5 @@
TESTS = tests/t_*.cc
SOURCES = src/*.{mm,cc}
EXPORT = src/OakDocument.h src/OakDocumentEditor.h src/document.h src/collection.h
LINK += BundlesManager OakAppKit OakFoundation OakSystem authorization buffer cf command crash editor encoding file io layout ns plist regexp scope selection settings text theme undo
LINK += BundlesManager OakAppKit OakFoundation OakSystem authorization buffer cf command editor encoding file io layout ns plist regexp scope selection settings text theme undo
FRAMEWORKS = ApplicationServices

View File

@@ -2,14 +2,11 @@
#include "fsref.h"
#include "path.h"
#include <cf/cf.h>
#include <crash/info.h>
namespace path
{
bool is_text_clipping (std::string const& path)
{
crash_reporter_info_t info("Path: " + path);
bool res = false;
if(extension(path) == "textClipping")
{